home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / lwlib / xlwscrollbarP.h < prev   
Encoding:
C/C++ Source or Header  |  1995-03-25  |  2.9 KB  |  112 lines

  1. /* Implements a lightweight scrollbar widget.  
  2.    Copyright (C) 1992, 1993, 1994 Lucid, Inc.
  3.  
  4. This file is part of the Lucid Widget Library.
  5.  
  6. The Lucid Widget Library is free software; you can redistribute it and/or 
  7. modify it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. The Lucid Widget Library is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of 
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Created by Douglas Keller <dkeller@vnet.ibm.com> */
  21. /* Last changed 02/05/95 */
  22.  
  23. #ifndef _XlwScrollBarP_h
  24. #define _XlwScrollBarP_h
  25.  
  26.  
  27. /*
  28. ** Widget class
  29. */
  30. typedef struct {
  31.     int dummy_field;    /* keep compiler happy */
  32. } XlwScrollBarClassPart;
  33.  
  34. typedef struct _XlwScrollbarClassRec {
  35.     CoreClassPart      core_class;
  36.     XlwScrollBarClassPart scrollbar_class;
  37. } XlwScrollBarClassRec;
  38.  
  39.  
  40. /*
  41. ** Widget instance
  42. */
  43. typedef struct {
  44.  
  45.     /* resources */
  46.     XtCallbackList      valueChangedCBL;
  47.     XtCallbackList      incrementCBL;
  48.     XtCallbackList      decrementCBL;
  49.     XtCallbackList      pageIncrementCBL;
  50.     XtCallbackList      pageDecrementCBL;
  51.     XtCallbackList      toTopCBL;
  52.     XtCallbackList      toBottomCBL;
  53.     XtCallbackList      dragCBL;
  54.  
  55.     Pixel               foreground;
  56.  
  57.     Pixel               topShadowColor;
  58.     Pixel               bottomShadowColor;
  59.  
  60.     Pixel               troughColor;
  61.  
  62.     Pixel               armColor;
  63.     Pixel               armTopShadowColor;
  64.     Pixel               armBottomShadowColor;
  65.  
  66.     Pixmap              topShadowPixmap;
  67.     Pixmap              bottomShadowPixmap;
  68.  
  69.     int                 shadowThickness;
  70.  
  71.     Boolean             showArrows;
  72.  
  73.     int                 minimum;
  74.     int                 maximum;
  75.     int                 sliderSize;
  76.     int                 value;
  77.     int                 pageIncrement;
  78.     int                 increment;
  79.  
  80.     int                 initialDelay;
  81.     int                 repeatDelay;
  82.  
  83.     unsigned char       orientation;
  84.  
  85.     char               *knobStyle;
  86.     char               *arrowPosition;
  87.  
  88.     /* private */
  89.     Pixmap              grayPixmap;
  90.  
  91.     GC                  backgroundGC;
  92.     GC                  topShadowGC;
  93.     GC                  bottomShadowGC;
  94.  
  95.     int                 above, ss, below;
  96.     int                 lastY;
  97.  
  98.     int                 armed;
  99.  
  100.     int                 savedValue;
  101.  
  102.     Boolean             fullRedrawNext;
  103.  
  104. } XlwScrollBarPart;
  105.  
  106. typedef struct _XlwScrollBarRec {
  107.     CorePart          core;
  108.     XlwScrollBarPart  sb;
  109. } XlwScrollBarRec;
  110.  
  111. #endif
  112.